package curator.distribute_lock;

import java.util.concurrent.atomic.AtomicInteger;

public class Atomic_Lock {
	
	final static AtomicInteger atomicInteger = new AtomicInteger(0);

	public static void main(String[] args) {
		for (int i = 0; i < 10; i++) {
			new Thread(new Runnable() {
				
				@Override
				public void run() {
					System.out.println(atomicInteger.incrementAndGet());
					
				}
			}).start();
		}
		
	}
}
